package com.neuedu.qian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * Author lu
 * Date  2024-11-18 16:53:45
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("department")
@Tag(name = "部门实体类")
@TableName(value = "department")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;
    @Schema(description = "部门ID")
    @TableField(value = "dep_id")
    @TableId(type = IdType.AUTO)
    private Integer depId;
    @Schema(description = "部门名称")
    @TableField(value = "name")
    private String name;
    @Schema(description = "部门编号")
    @TableField(value = "code")
    private String code;
    @Schema(description = "使用状态(1:使用;2:停用)")
    @TableField(value = "use_state")
    private Integer useState;
    @Schema(description = "创建用户ID")
    @TableField(value = "create_user_id")
    private Integer createUserId;
    @Schema(description = "创建时间")
    @TableField(value = "create_time")
    private Date createTime;
    @Schema(description = "修改用户ID")
    @TableField(value = "modify_user_id")
    private Integer modifyUserId;
    @Schema(description = "修改时间")
    @TableField(value = "modify_time")
    private Date modifyTime;
    @Schema(description = "备注")
    @TableField(value = "remark")
    private String remark;
}